﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace SmoothControls
{
	public partial class DetailsControl : UserControl
	{
		public DetailsControl()
		{
			InitializeComponent();
		}

		public void LoadInfo( String username, String source, String content, String Timestamp, Image Avatar )
		{
			lblSource.Text = source;
			lblText.Text = content;
			lblUserName.Text = username;
			lblTime.Text = Timestamp;
			avatarBox.Image = Avatar;
		}

		public void ClearDetails()
		{
			lblSource.Text = String.Empty;
			lblText.Text = String.Empty;
			lblUserName.Text = String.Empty;
			lblTime.Text = String.Empty;
			avatarBox.Image = null;
		}

		private void lnkDismiss_Click( object sender, EventArgs e )
		{
			this.Visible= false;
		}
	}
}
